babl: make missing fast path message explicit
authorØyvind Kolås <pippin@gimp.org>
Sun, 11 Dec 2016 21:13:25 +0000 (22:13 +0100)
committerØyvind Kolås <pippin@gimp.org>
Sun, 11 Dec 2016 21:13:28 +0000 (22:13 +0100)
Explicit, and mandatory for BABL_UNSTABLE.

babl/babl-fish-path.c

index 7a7118438dd08253b5080b8adcd0a552f0518a18..3762d625a49fad03b9f393100001e4ee2a1a661f 100644 (file)
@@ -342,10 +342,24 @@ babl_fish_path (const Babl *source,
       babl_free (babl);
       babl_mutex_unlock (babl_format_mutex);
 
+#ifndef BABL_UNSTABLE
       if (debug_conversions)
-        fprintf (stderr, "babl: no fast path for \"%s\" to \"%s\"\n",
+#endif
+      {
+        static int warnings = 0;
+        if (warnings++ == 0)
+          fprintf (stderr, 
+"Missing fast-path babl conversion detected, Implementing missing babl fast paths\n"
+"accelerates GEGL, GIMP and other software using babl, warnings are printed on\n"
+"first occurance of formats used where a conversion has to be synthesized\n"
+"programmatically by babl based on format description\n"
+"\n");
+
+        fprintf (stderr, "*WARNING*: missing babl fast path(s) between formats \"%s\" and \"%s\"\n",
            babl_get_name (source),
            babl_get_name (destination));
+
+      }
       return NULL;
     }